package com.spring.housing1.util;

import java.util.function.Consumer;
import java.util.function.Predicate;

public class Tests {

    {
        System.out.print(12334);
    }
  public void aa(){
      {
          int a =15456;
          System.out.print(a);
      }
      {
          int a =15456;
          System.out.print(a);
      }
  }



  public static void disc(String[] arr ,Consumer<String> str1,Consumer<String> str2){
      for (String a :
           arr) {
          str1.andThen(str2).accept(a);
      }

  }
    public static void main(String[] args) {

        Consumer<String> consumer1 = s -> {
            System.out.println(s+"1234");};
        Consumer<String> consumer2 = s -> System.out.println(s.toUpperCase());
        consumer1.andThen(consumer2).accept("abc");
        String[] array = {"张三,女", "李四,女", "王五,男"};
        disc(array,
                s->System.out.print(s.split(",")[0]), s->System.out.print(s.split(",")[1]));
    }
}
